/*
 * 作者: 黄伟
 * 时间: 2017-02-03
 * 说明：
 * Copyright (c) 2016-2017 中研沃兮
 */
define(function(require) {

	require("jquery");

	var c = require('app/utils/CommonUtils');
	var EventUtils = require('app/utils/EventUtils');
	var appInfo = require('app/AppInfo');

	var action = require('./action/SelectInputFrmAction');
	
	var param = api.pageParam;
	
	param.options.forEach(function(value,index){
		action.renderItem(value);
	})
    
    action.selectItem(param.value);
    
    //监听click事件
    action.listenClickItem();
    
	//用于将选中的值传递给SelecgtInputWin窗体
	EventUtils.listenGather(function(){
		var msg = action.getSelectedItem();
		EventUtils.sendFrmVal(msg);
	});
	
	return;
});